get_sound_storage
This function gets the location of the pack file in which the engine will look for sound files loaded through the sound object.
string get_sound_storage()
Parameters:
None.
Return value:
The name on success, or an empty string on failure.
Remarks:
Note that both \ and / can be used to specify paths.
If an empty string is returned by this function, it means that the engine will not look for sounds in a pack file but will attempt to locate requested files on disk instead. This is the default behavior.
If the function returns *, it means that the engine will attempt to look for sounds in a pack file that has been included into the program itself. For more information on how this is done, see the tutorial on packaging files with your executable.
Example:
// Tell the engine to look for sound files in a file called sounds.dat, and then print this.
void main()
{
set_sound_storage("sounds.dat");
alert("Sound storage", "The sound storage is " + get_sound_storage() + ".");
}